import { CHNAGE_LIST } from './constants'
import clientAxios from '../../../client/request'
import serverAxios from '../../../server/request'

const articleList = (list) => ({
	type: CHNAGE_LIST,
	value: list
})

export const getHomeList  = () => {

	return (dispatch, getState, axios) => {
		return axios.get('/front/article').then((res) => {
			dispatch(articleList(res.data.data.list))
		}) 
	}
}